using NHibernate;

namespace DMS.DAOs.NH
{
    public abstract class AbstractDAO
    {
        private readonly ISessionFactory sessionFactory;

        protected AbstractDAO(ISessionFactory sessionFactory)
        {
            this.sessionFactory = sessionFactory;
        }

        protected ISession Session {
            get{
                return sessionFactory.GetCurrentSession();
            }}
    }
}